<?php 
    if (!isset($_REQUEST['act']) || !isset($_REQUEST['id'])) {
        return;
    }
    $str = '[Timer] wid=' . $_REQUEST['id'] . ', ' . $_REQUEST['act'] . '(), ' . date('Y/m/d H:i:s') . "\n";
    $handler = fopen('timer.log', 'a+');
    fwrite($handler, $str);
    fclose($handler);
?> 
